// 作者的目的: 利用大仓库的getters去 快捷获取 小仓库内的数据(数据越恶心 越爽)
const getters = {
  // doubleCount: state => state.count * 2,

  sidebar: state => state.app.sidebar,
  device: state => state.app.device,

  token: state => state.user.token,

  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,

  company: state => state.user.userInfo.company,
  departmentName: state => state.user.userInfo.departmentName

  // football: state => state.user.info.hobby.football
}

// 如果想要获取user模块内的name
// store.state.user.name
// store.getters.name

// store.state.user.token
// store.getters.token

// store.state.user.info.hobby.football
// store.getters.football

export default getters
